package com.cnap.model.application;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
 * <类文件描述>
 *
 * @author xc
 **/
class CategoryEnumTest {

    @Test
    void isValidEmpty() {
        boolean result = CategoryEnum.CATEGORY_AI.isValid("");
        Assertions.assertFalse(result);
    }
    @Test
    void isValidFalse() {
        boolean result = CategoryEnum.CATEGORY_AI.isValid("AI1");
        Assertions.assertFalse(result);
    }
    @Test
    void isValidTrue() {
        boolean result = CategoryEnum.CATEGORY_AI.isValid("AI");
        Assertions.assertTrue(result);
    }
}